import path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export const PORT = 5002;

export const SAMPLE_RATE = 16000;
export const CHANNELS = 1;
export const BIT_DEPTH = 16;
export const FRAME_SIZE = 960;        // 60ms @ 16kHz

export const SEGMENT_FRAMES = 90;
export const OUTPUT_DIR = path.join(__dirname, 'output');
